package inventory.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxt
 * @since 2019-11-06
 */
public class MaterialStuff extends Model<MaterialStuff> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "stuff_id", type = IdType.UUID)
    private String stuffId;
    private String stuffTypicalId;
    private String repositoryId;
    private String name;//批号
    private String belonging;
    private Long outRepository;
    private Long inRepository;
    private String materialTypicalId;
    private Date storageTime;
    private Date saleTime;


    public String getStuffId() {
        return stuffId;
    }

    public void setStuffId(String stuffId) {
        this.stuffId = stuffId;
    }

    public String getStuffTypicalId() {
        return stuffTypicalId;
    }

    public void setStuffTypicalId(String stuffTypicalId) {
        this.stuffTypicalId = stuffTypicalId;
    }

    public String getRepositoryId() {
        return repositoryId;
    }

    public void setRepositoryId(String repositoryId) {
        this.repositoryId = repositoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBelonging() {
        return belonging;
    }

    public void setBelonging(String belonging) {
        this.belonging = belonging;
    }

    public Long getOutRepository() {
        return outRepository;
    }

    public void setOutRepository(Long outRepository) {
        this.outRepository = outRepository;
    }

    public Long getInRepository() {
        return inRepository;
    }

    public void setInRepository(Long inRepository) {
        this.inRepository = inRepository;
    }

    public String getMaterialTypicalId() {
        return materialTypicalId;
    }

    public void setMaterialTypicalId(String materialTypicalId) {
        this.materialTypicalId = materialTypicalId;
    }

    public Date getStorageTime() {
        return storageTime;
    }

    public void setStorageTime(Date storageTime) {
        this.storageTime = storageTime;
    }

    public Date getSaleTime() {
        return saleTime;
    }

    public void setSaleTime(Date saleTime) {
        this.saleTime = saleTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.stuffId;
    }

    @Override
    public String toString() {
        return "MaterialStuff{" +
        ", stuffId=" + stuffId +
        ", stuffTypicalId=" + stuffTypicalId +
        ", repositoryId=" + repositoryId +
        ", name=" + name +
        ", belonging=" + belonging +
        ", outRepository=" + outRepository +
        ", inRepository=" + inRepository +
        ", materialTypicalId=" + materialTypicalId +
        ", storageTime=" + storageTime +
        ", saleTime=" + saleTime +
        "}";
    }
}
